package org.ykh.gmall.list;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;

//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@SpringBootApplication(scanBasePackages = {
        "org.ykh.gmall.list",
        "org.ykh.common",//common
        "org.ykh.service",//service
})
@EnableDiscoveryClient
@ConfigurationPropertiesScan({"org.ykh.service.property"})
@EnableFeignClients(basePackages = "org.ykh.gmall.feign")
@EnableElasticsearchRepositories("org.ykh.gmall.list.repository")//ES
public class GmallListApplication {

    public static void main(String[] args) {

        SpringApplication.run(GmallListApplication.class,args);
    }



}
